/***************************************************************
Made by: Cultured::Labs

Copyright (c) 2011 Cultured::Labs
****************************************************************/
#include "spaceship.h"

//constructor
Spaceship::Spaceship(std::string name, int hp_value, int armor_value, int damage_value) {
  title = name;
  hp = hp_value;
  armor = armor_value;
  damage = damage_value;
}


//get and add functions
std::string Spaceship::get_title() {
  return title;
}

int Spaceship::get_hp() {
  return hp;
}

int Spaceship::get_armor() {
  return armor;
}

int Spaceship::get_damage() {
  return damage;
}

void Spaceship::add_hp(int hp_value) {
  hp += hp_value;
}

void Spaceship::add_armor(int armor_value) {
  armor += armor_value;
}

void Spaceship::add_damage(int damage_value) {
  damage += damage_value;
}


//print function
void Spaceship::print_stats() {
  std::cout << "[-" << title << "-]" << std::endl
      << "Hp:     " << hp << std::endl
      << "Armor:  " << armor << std::endl
      << "Damage: " << damage << std::endl;
}
